import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../layout/Layout.vue'

const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    //  redirect: "/qqq",
    children: [
      {
        path: '/user',
        name: 'User',
        component: () => import("@/views/User"),
      },
      {
        path: '/stufile',
        name: 'StuFile',
        component: () => import("@/views/CusFile"),
      },
      {
        path: '/fdback',
        name: 'FdBack',
        component: () => import("@/views/FdBack"),
      },
      {
        path: '/person',
        name: 'Person',
        component: ()=>import("@/views/Person")
      },
      {
        path: '/cusqr',
        name: 'cusqr',
        component: ()=>import("@/views/CusQ")
      },
      {
        path: '/itemvaluesyhr',
        name: 'itemvaluesyhr',
        component: ()=>import("@/views/ItemValuesR")
      },
      {
        path: '/person',
        name: 'Person',
        component: ()=>import("@/views/Person")
      },
      {
        path: '/itemstatus',
        name: 'itemstatus',
        component: ()=>import("@/views/ItemStatus")
      },
      {
        path: '/erp',
        name: 'ERP',
        component: ()=>import("@/views/ERP")
      },
      {
        path: '/gisales',
        name: 'gisales',
        component: ()=>import("@/views/GISales")
      },
      {
        path: '/message',
        name: 'Message',
        component: ()=>import("@/views/Message")
      },
      {
        path: '/vitransactions',
        name: 'vitransactions',
        component: ()=>import("@/views/VITransactions")
      },
      {
        path: '/tcourse',
        name: 'TCourse',
        component: ()=>import("@/views/TCourse")
      },
      {
        path: '/itemvaluesyh',
        name: 'itemvaluesyh',
        component: ()=>import("@/views/ItemValuesYH")
      },



    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: ()=>import("@/views/Login")
  },
  {
    path: '/register',
    name: 'Register',
    component: ()=>import("@/views/Register")
  },
  

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
